home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / docs / XFree86-HOWTO < prev    next >
Text File  |  1997-12-20  |  24KB  |  611 lines

  1.   The Linux XFree86 HOWTO
  2.   by Eric S. Raymond
  3.   v5.2, 31 October 1997
  4.  
  5.   This document describes how to obtain, install, and configure version
  6.   3.3 of the XFree86 version of the X Window System (X11R6) for Linux
  7.   systems. It is a step-by-step guide to configuring XFree86 on your
  8.   system.
  9.  
  10.   1.  Introduction
  11.  
  12.   The X Window System is a large and powerful (some might say
  13.   excessively large and overly complex) graphics environment for UNIX
  14.   systems. The original X Window System code was developed at MIT;
  15.   commercial vendors have since made X the industry standard for UNIX
  16.   platforms. Virtually every UNIX workstation in the world runs some
  17.   variant of the X Window system.
  18.  
  19.   A freely redistributable port of the MIT X Window System version 11,
  20.   release 6 (X11R6) for 80386/80486/Pentium UNIX systems has been
  21.   developed by a team of programmers originally headed by David
  22.   Wexelblat <dwex@XFree86.org>. The release, known as XFree86, is
  23.   available for System V/386, 386BSD, and other x86 UNIX
  24.   implementations, including Linux. It includes all of the required
  25.   binaries, support files, libraries, and tools.
  26.  
  27.   Complete information on XFree86 is available at the XFree86 web site,
  28.   <http://www.XFree86.org>.
  29.  
  30.   In this document, we'll give a step-by-step description of how to
  31.   install and configure XFree86 for Linux, but you will have to fill in
  32.   some of the details yourself by reading the documentation released
  33.   with XFree86 itself. (This documentation is discussed below.)
  34.   However, using and customizing the X Window System is far beyond the
  35.   scope of this document---for this purpose you should obtain one of the
  36.   many good books on using the X Window System.
  37.  
  38.   1.1.  Other sources of information
  39.  
  40.   If you have never heard of Linux before, there are several sources of
  41.   basic information about the system. The best place to find these is at
  42.   the Linux Documentation Project home page at
  43.   <http://sunsite.unc.edu/LDP>.  You can find the latest, up-to-date
  44.   version of this document there, as
  45.   <http://sunsite.unc.edu/LDP/HOWTO/XFree86-HOWTO.html>
  46.  
  47.   1.2.  New versions of this document
  48.  
  49.   New versions of the Linux XFree86 HOWTO will be periodically posted to
  50.   comp.os.linux.help and  and news.answers <news:news.answers>.  They
  51.   will also be uploaded to various Linux WWW and FTP sites, including
  52.   the LDP home page.
  53.  
  54.   You can always view the latest version of this on the World Wide Web
  55.   via the URL  <http://sunsite.unc.edu/LDP/HOWTO/XFree86-HOWTO.html>.
  56.  
  57.   1.3.  Feedback and Corrections
  58.  
  59.   If you have questions or comments about this document, please feel
  60.   free to mail Eric S. Raymond, at esr@thyrsus.com. I welcome any
  61.   suggestions or criticisms. If you find a mistake with this document,
  62.   please let me know so I can correct it in the next version. Thanks.
  63.  
  64.   Please do not mail me questions about how to make your video card and
  65.   monitor work with X.  This HOWTO is intended to be a rapid, painless
  66.   guide to normal installation using the new interactive configurator.
  67.   If you run into problems, browse the XFree86 Video Timings HOWTO,
  68.   <http://sunsite.unc.edu/LDP/HOWTO/XFree86-Video-Timings-HOWTO.html>.
  69.   (This is the up-to-date HTML version of XFree86's `Videomodes.doc'
  70.   file.)  That document tells everything I know about configuration
  71.   troubleshooting.  If it can't help you, I can't either.
  72.  
  73.   2.  Hardware requirements
  74.  
  75.   As of XFree86 version 3.3 the following video chipsets are supported.
  76.   The documentation included with your video adaptor should specify the
  77.   chipset used. If you are in the market for a new video card, or are
  78.   buying a new machine that comes with a video card, have the vendor
  79.   find out exactly what the make, model, and chipset of the video card
  80.   is. This may require the vendor to call technical support on your
  81.   behalf; in general vendors will be happy to do this. Many PC hardware
  82.   vendors will state that the video card is a ``standard SVGA card''
  83.   which ``should work'' on your system. Explain that your software
  84.   (mention Linux and XFree86!)  does not support all video chipsets and
  85.   that you must have detailed information.
  86.  
  87.   You can also determine your videocard chipset by running the
  88.   SuperProbe program included with the XFree86 distribution.  This is
  89.   covered in more detail below.
  90.  
  91.   The following standard SVGA chipsets are supported:
  92.  
  93.   ╖  Tseng ET3000, ET4000AX, ET4000/W32, ET6000
  94.  
  95.   ╖  Western Digital/Paradise PVGA1
  96.  
  97.   ╖  Western Digital WD90C00, WD90C10, WD90C11, WD90C24, WD90C30,
  98.      WD90C31, WD90C33
  99.  
  100.   ╖  Genoa GVGA
  101.  
  102.   ╖  Trident TVGA8800CS, TVGA8900B, TVGA8900C, TVGA8900CL, TVGA9000,
  103.      TVGA9000i, TVGA9100B, TVGA9200CX, TVGA9320, TVGA9400CX, TVGA9420,
  104.      TGUI9420DGi, TGUI9430DGi, TGUI9440AGi, TGUI9660XGi, TGUI9680
  105.  
  106.   ╖  ATI 18800, 18800-1, 28800-2, 28800-4, 28800-5, 28800-6, 68800-3,
  107.      68800-6, 68800AX, 68800LX, 88800GX-C, 88800GX-D, 88800GX-E,
  108.      88800GX-F, 88800CX, 264CT, 264ET, 264VT, 264VT2, 264GT
  109.  
  110.   ╖  NCR 77C22, 77C22E, 77C22E+
  111.  
  112.   ╖  Cirrus Logic CLGD5420, CLGD5422, CLGD5424, CLGD5426, CLGD5428,
  113.      CLGD5429, CLGD5430, CLGD5434, CLGD5436, CLGD5440, CLGD5446,
  114.      CLGD5462, CLGD5464, CLGD6205, CLGD6215, CLGD6225, CLGD6235,
  115.      CLGD6410, CLGD6412, CLGD6420, CLGD6440
  116.  
  117.   ╖  OAK OTI067, OTI077, OTI087
  118.  
  119.   ╖  Avance Logic ALG2101, ALG2228, ALG2301, ALG2302, ALG2308, ALG2401
  120.  
  121.   ╖  Chips & Technologies 65520, 65530, 65540, 65545, 65520, 65530,
  122.      65540, 65545, 65546, 65548, 65550, 65554
  123.  
  124.   ╖  MX MX68000, MX680010
  125.  
  126.   ╖  Video 7/Headland Technologies HT216-32
  127.  
  128.   ╖  SiS 86C201, 86C202, 86C205
  129.  
  130.   ╖  ARK Logic ARK1000PV, ARK1000VL, ARK2000PV, ARK2000MT
  131.  
  132.   ╖  RealTek RTG3106
  133.  
  134.   ╖  Alliance AP6422
  135.  
  136.   ╖  Matrox MGA2064W and Mystique cards
  137.  
  138.   ╖  NVidia/SGS Thomson NV1, STG2000
  139.  
  140.   The following SVGA chipsets with accelerated features are also
  141.   supported:
  142.  
  143.   ╖  8514/A (and true clones)
  144.  
  145.   ╖  ATI Mach8, Mach32, Mach64
  146.  
  147.   ╖  Cirrus CLGD5420, CLGD5422, CLGD5424, CLGD5426, CLGD5428, CLGD5429,
  148.      CLGD5430, CLGD5434, CLGD5436, CLGD5440, CGLD5446, CLGD5462,
  149.      CLGD5464.
  150.  
  151.   ╖  S3 86C911, 86C924, 86C801, 86C805, 86C805i, 86C928, 86C864, 86C964,
  152.      86C732, 86C764, 86C765, 86C868, 86C968, 86C325, 86C988
  153.  
  154.   ╖  Western Digital WD90C31, WD90C33, WD90C24A
  155.  
  156.   ╖  Weitek P9000
  157.  
  158.   ╖  IIT AGX-014, AGX-015, AGX-016
  159.  
  160.   ╖  IBM XGA-2
  161.  
  162.   ╖  Tseng ET4000/W32, ET4000/W32i, ET4000/W32p, ET6000
  163.  
  164.   ╖  Ark Logic ARK1000PV, ARK1000VL, ARK2000PV, ARK2000MT
  165.  
  166.   ╖  MGA2064W
  167.  
  168.   Video cards using these chipsets are supported on all bus types,
  169.   including VLB and PCI.
  170.  
  171.   All of the above are supported in both 256 color and monochrome modes,
  172.   with the exception of the Avance Logic, MX and Video 7 chipsets, which
  173.   are only supported in 256 color mode. If your video card has enough
  174.   DRAM installed, many of the above chipsets are supported in 16 and 32
  175.   bits-per-pixel mode (specifically, some Mach32, P9000, S3 and Cirrus
  176.   boards). The usual configuration is 8 bits per pixel (that is, 256
  177.   colors).
  178.  
  179.   The monochrome server also supports generic VGA cards, the Hercules
  180.   monochrome card, the Hyundai HGC1280, Sigma LaserView, and Apollo
  181.   monochrome cards. On the Compaq AVGA, only 64k of video memory is
  182.   supported for the monochrome server, and the GVGA has not been tested
  183.   with more than 64k.
  184.  
  185.   This list will undoubtedly expand as time passes. The release notes
  186.   for the current version of XFree86 should contain the complete list of
  187.   supported video chipsets.
  188.  
  189.   One problem faced by the XFree86 developers is that some video card
  190.   manufacturers use non-standard mechanisms for determining clock
  191.   frequencies used to drive the card. Some of these manufacturers either
  192.   don't release specifications describing how to program the card, or
  193.   they require developers to sign a non-disclosure statement to obtain
  194.   the information. This would obviously restrict the free distribution
  195.   of the XFree86 software, something that the XFree86 development team
  196.   is not willing to do. For a long time, this has been a problem with
  197.   certain video cards manufactured by Diamond, but as of release 3.1 of
  198.   XFree86, Diamond has started to work with the development team to
  199.   release free drivers for these cards.
  200.  
  201.   The suggested setup for XFree86 under Linux is a 486 or better with at
  202.   least 8 megabytes of RAM, and a video card with a chipset listed
  203.   above. For optimal performance, we suggest using an accelerated card,
  204.   such as an S3-chipset card. You should check the documentation for
  205.   XFree86 and verify that your particular card is supported before
  206.   taking the plunge and purchasing expensive hardware.
  207.  
  208.   Farrel McKay compiles benchmark ratings comparisons for various video
  209.   cards under XFree86.  These are posted routinely to the USENET
  210.   newsgroups comp.windows.x.i386unix <news:comp.windows.x.i386unix>,
  211.   comp.os.linux.x <news:comp.os.linux.x>,  <comp.benchmarks>,
  212.   <comp.sys.ibm.pc.hardware.video>.  They are available on the Web at
  213.   <http://www.goof.com/xbench>.
  214.  
  215.   As a side note, the personal Linux system of Matt Welsh (this FAQ's
  216.   originator) was a 486DX2-66, 20 megabytes of RAM, equipped with a VLB
  217.   S3-864 chipset card with 2 megabytes of DRAM.  He ran X benchmarks on
  218.   this machine as well as on Sun Sparc IPX workstations.  The Linux
  219.   system was roughly 7 times faster than the Sparc IPX (for the curious,
  220.   XFree86-3.1 under Linux, with this video card, runs at around 171,000
  221.   xstones; the Sparc IPX at around 24,000). In general, XFree86 on a
  222.   Linux system with an accelerated SVGA card will give you much greater
  223.   performance than that found on commercial UNIX workstations (which
  224.   usually employ simple framebuffers for graphics).
  225.  
  226.   Your machine will need at least 4 megabytes of physical RAM, and 16
  227.   megabytes of virtual RAM (for example, 8 megs physical and 8 megs
  228.   swap).  Remember that the more physical RAM that you have, the less
  229.   that the system will swap to and from disk when memory is low. Because
  230.   swapping is inherently slow (disks are very slow compared to memory),
  231.   having 8 megabytes of RAM or more is necessary to run XFree86
  232.   comfortably.  16 is better.  A system with 4 megabytes of physical RAM
  233.   could run much (up to 10 times) more slowly than one with 8 megs or
  234.   more.
  235.  
  236.   3.  Installing XFree86
  237.  
  238.   It's quite likely that you obtained XFree86 as part of a Linux
  239.   distribution, in which case downloading the software separately is not
  240.   necessary.  In that case you can skip this section.
  241.  
  242.   The Linux binary distribution of XFree86 can be found on a number of
  243.   FTP sites.  On the XFree86 site it's at
  244.   <ftp://ftp.xfree86.org/pub/XFree86/current/binaries/Linux-ix86> (As of
  245.   the time of this writing, the current version is 3.2A; newer versions
  246.   are released periodically).
  247.  
  248.   Before doing anything else, download and run the `preinst.sh' shell
  249.   script first.  This may tell you about prerequisites you'll need to
  250.   have in place before contibuing your installation.
  251.  
  252.   If you are downloading XFree86 directly, this table lists the files in
  253.   the XFree86-3.3 distribution.
  254.  
  255.   One of the following servers is required:
  256.  
  257.      X338514.tgz
  258.         Server for 8514-based boards.
  259.      X33AGX.tgz
  260.         Server for AGX-based boards.
  261.  
  262.      X33I128.tgz
  263.         Server for the Number Nine Imagine 128.
  264.  
  265.      X33Mach32.tgz
  266.         Server for Mach32-based boards.
  267.  
  268.      X33Mach64.tgz
  269.         Server for Mach64-based boards.
  270.  
  271.      X33Mach8.tgz
  272.         Server for Mach8-based boards.
  273.  
  274.      X33Mono.tgz
  275.         Server for monochrome video modes.
  276.  
  277.      X33P9K.tgz
  278.         Server for P9000-based boards.
  279.  
  280.      X33S3.tgz
  281.         Server for S3-based boards.
  282.  
  283.      X33S3V.tgz
  284.         Server for the S3 ViRGE and ViRGE/VX (considered beta)
  285.  
  286.      X33SVGA.tgz
  287.         Server for Super VGA-based boards.
  288.  
  289.      X33W32.tgz
  290.         Server for ET4000/W32-based boards.
  291.  
  292.   If you don't know which one to take, take the VGA16 server,
  293.   X33VGA16.tgz.  You want to download this one anyway, because you'll
  294.   need it to run the auto-configuration utility in the next step.
  295.  
  296.   All of the following files are required:
  297.  
  298.      preinst.sh
  299.         Pre-installation script
  300.  
  301.      postinst.sh
  302.         Post-installation script
  303.  
  304.      X33bin.tgz
  305.         The rest of the X11R6 binaries.
  306.  
  307.      X33cfg.tgz
  308.         Config files for xdm, xinit and fs.
  309.  
  310.      X33doc.tgz
  311.         Documentation.
  312.  
  313.      X33man.tgz
  314.         Manual pages.
  315.  
  316.      X33fnts.tgz
  317.         75dpi, misc and PEX fonts
  318.  
  319.      X33lib.tgz
  320.         Shared X libraries and support files.
  321.  
  322.      X33set.tgz
  323.         XF86Setup utility
  324.  
  325.      X33VG16.tgz
  326.         Server for VGA/EGA-based boards.
  327.  
  328.   The following files are optional:
  329.  
  330.      X33f100.tgz
  331.         100dpi fonts
  332.  
  333.      X33fcyr.tgz
  334.         Cyrillic fonts
  335.  
  336.      X33fnon.tgz
  337.         Other fonts (Chinese, Japanese, Korean, Hebrew)
  338.  
  339.      X33fscl.tgz
  340.         Scalable fonts (Speedo and Type1)
  341.  
  342.      X33fsrv.tgz
  343.         Font server and config files
  344.  
  345.      X33prog.tgz
  346.         X header files, config files and compile-time libs
  347.  
  348.      X33lkit.tgz
  349.         X server LinkKit
  350.  
  351.      X33lk98.tgz
  352.         PC98 X server LinkKit
  353.  
  354.      X33nest.tgz
  355.         Nested X server
  356.  
  357.      X33prt.tgz
  358.         X print server
  359.  
  360.      X33vfb.tgz
  361.         Virtual framebuffer X server
  362.  
  363.      X33ps.tgz
  364.         PostScript version of the documentation
  365.  
  366.      X33html.tgz
  367.         HTML version of the documentation
  368.  
  369.   The XFree86 directory should contain release notes for the current
  370.   version in RELNOTES.  Consult those for installation details
  371.  
  372.   All that is required to install XFree86 is to obtain the above files,
  373.   create the directory /usr/X11R6 (as root), and unpack the files from
  374.   /usr/X11R6 with a command such as:
  375.  
  376.        gzip -dc X33bin.tgz | tar xfB -
  377.  
  378.   Remember that these tar files are packed relative to /usr/X11R6, so
  379.   it's important to unpack the files there.
  380.  
  381.   You need to make sure that /usr/X11R6/bin is on your path.  This can
  382.   be done by editing your system default /etc/profile or /etc/csh.login
  383.   (based on the shell that you, or other users on your system, use). Or
  384.   you can simply add the directory to your personal path by modifying
  385.   /etc/.bashrc or /etc/.cshrc, based on your shell.
  386.  
  387.   You also need to make sure that /usr/X11R6/lib can be located by
  388.   ld.so, the runtime linker. To do this, add the line
  389.  
  390.        /usr/X11R6/lib
  391.  
  392.   to the file /etc/ld.so.conf, and run /sbin/ldconfig, as root.
  393.  
  394.   4.  Configuring XFree86
  395.  
  396.   4.1.  Normal Configuration
  397.  
  398.   Configuring XFree86 to use your mouse, keyboard, monitor, and video
  399.   card correctly used to be something of a black art, requiring
  400.   extensive hand-hacking of a complex configuration file.  No more; the
  401.   3.2/3.3 released made the process nearly trivial.  All you do is fire
  402.   up the program XF86Setup.
  403.  
  404.   This program depends on the fact that all new PC hardware these days
  405.   ships with EGA/VGA capable monitors.  It invokes the SVGA16 server and
  406.   uses it to bring up X in a lowest-common-denominator 640x480 mode.
  407.   Then it runs an interactive program that walks you through a series of
  408.   five configuration panels -- mouse, keyboard, (video) card, monitor,
  409.   and `other' (miscellaneous server options). The whole process is quite
  410.   painless.
  411.  
  412.   One minor point to keep in mind is that, if you're like most people
  413.   using current PC, your keyboard is actually what XF86Setup calls
  414.   `Generic 102-key PC (intl)' rather than the default `Generic 101-key
  415.   PC'.  If you pick the default (101) the key cluster on the extreme
  416.   right of your keyboard (numeric keypad and friends) may stop working.
  417.  
  418.   If you're not sure of your monitor type, you can try the listed ones
  419.   in succession.  Work your way from top down (upper choices involve
  420.   lower dot-clock speeds and are less demanding on the hardware).  Back
  421.   off if you get hash or a seriously distorted picture. Minor
  422.   distortions (picture slightly too large, slightly too small, or
  423.   slightly off-center) are no problem; you'll get a chance to correct
  424.   those immediately by fine-tuning the mode.
  425.  
  426.   And, when the program brings up xvidtune to allow you to tweak your
  427.   video mode, don't let the initial warning box make you nervous.
  428.   Modern multisync monitors (unlike their fixed-frequency predecessors)
  429.   are not easy to damage this way.
  430.  
  431.   4.2.  Troubleshooting
  432.  
  433.   Occasionally, something will not be quite right when you initially
  434.   fire up the X server. This is almost always caused by a problem in
  435.   your configuration file. Usually, the monitor timing values are off,
  436.   or the video card dot clocks set incorrectly. Minor problems can be
  437.   fixed with xvidtune; a really garbled screen usually means you need to
  438.   go back into XF86Setup and choose a less capable monitor type.
  439.  
  440.   If your display seems to roll, or the edges are fuzzy, this is a clear
  441.   indication that the monitor timing values or dot clocks are wrong.
  442.   Also be sure that you are correctly specifying your video card
  443.   chipset, as well as other options for the Device section of
  444.   XF86Config. Be absolutely certain that you are using the right X
  445.   server and that /usr/X11R6/bin/X is a symbolic link to this server.
  446.  
  447.   If all else fails, try to start X ``bare''; that is, use a command
  448.   such as:
  449.  
  450.        X > /tmp/x.out 2>&1
  451.  
  452.   You can then kill the X server (using the ctrl-alt-backspace key com¡
  453.   bination) and examine the contents of /tmp/x.out. The X server will
  454.   report any warnings or errors---for example, if your video card
  455.   doesn't have a dot clock corresponding to a mode supported by your
  456.   monitor.
  457.  
  458.   Remember that you can use ctrl-alt-numeric + and ctrl-alt-numeric - to
  459.   switch between the video modes listed on the Modes line of the Screen
  460.   section of XF86Config. If the highest resolution mode doesn't look
  461.   right, try switching to lower resolutions. This will let you know, at
  462.   least, that those parts of your X configuration are working correctly.
  463.  
  464.   Also, check the vertical and horizontal size/hold knobs on your
  465.   monitor.  In many cases it is necessary to adjust these when starting
  466.   up X. For example, if the display seems to be shifted slightly to one
  467.   side, you can usually correct this using the monitor controls.
  468.  
  469.   The USENET newsgroup comp.windows.x.i386unix is devoted to discussions
  470.   about XFree86, as is comp.os.linux.x.  It might be a good idea to
  471.   watch that newsgroup for postings relating to your video
  472.   configuration---you might run across someone with the same problems as
  473.   your own.
  474.  
  475.   4.3.  Custom Configuration
  476.  
  477.   You will need to hand-hack your X configuration to get optimal
  478.   performance if your monitor can support 1600x1200 -- the highest
  479.   canned resolution XF86Setup supports is 1280x1024.
  480.  
  481.   If you want to hand-hack your video configuration for this or any
  482.   other reason, go see the LDP's XFree86 Video Timings HOWTO,
  483.   <http://sunsite.unc.edu/LDP/HOWTO/video-modes.html>.  (This is the up-
  484.   to-date HTML version of XFree86's `Videomodes.doc' file.)
  485.  
  486.   4.4.  Using 16-bit Color
  487.  
  488.   By default, X uses 8-bit color depth giving 256 colors. To circumvent
  489.   this restriction, many applications allocate their own colormaps,
  490.   resulting in sudden color jumps when the cursor moves between two
  491.   windows each having a color map of its own. The Arena WWW browser does
  492.   it this way.
  493.  
  494.   If you want to use advanced graphic applications 256 colors may be not
  495.   sufficient. You can use 16bit color depth with 65K different colors
  496.   simply by starting X with
  497.  
  498.   ______________________________________________________________________
  499.       startx -- -bpp 16
  500.   ______________________________________________________________________
  501.  
  502.   or putting
  503.  
  504.   ______________________________________________________________________
  505.       exec X :0 -bpp 16
  506.   ______________________________________________________________________
  507.  
  508.   into your .xserverrc file.  But beware, not all applications will work
  509.   with 16bit colors.
  510.  
  511.   More colors makes your video card transfer more data during the same
  512.   time. If your video card cannot cope, then either the resolution has
  513.   or the refresh rate has to be reduced.  By default, XFree reduces the
  514.   resolution.  If you want to keep the resolution and reduce the refresh
  515.   rate, you must insert a new appropriate Modeline into your XF86Config
  516.   file which defines that resolution with a lower refresh rate. For
  517.   instance replace the old value
  518.  
  519.        Modeline "1024x768"  75  1024 1048 1184 1328 768 771 777 806 -hsync -vsync
  520.  
  521.   with
  522.  
  523.        Modeline "1024x768"  65  1024 1032 1176 1344 768 771 777 806 -hsync -vsync.
  524.  
  525.   The magic numbers 75 and 65 are the respective clock rates which you
  526.   find reported by X in your .X.err file. Consult the monitors file in
  527.   the XF86 documentation for Modelines suitable to the maximum clock
  528.   rate your video card can deliver under 16bit color depth.
  529.  
  530.   5.  Running XFree86
  531.  
  532.   With your XF86Config file configured, you're ready to fire up the X
  533.   server and give it a spin. First, be sure that /usr/X11R6/bin is on
  534.   your path.
  535.  
  536.   The command to start up XFree86 is
  537.  
  538.        startx
  539.  
  540.   This is a front-end to xinit (in case you're used to using xinit on
  541.   other UNIX systems).
  542.  
  543.   This command will start the X server and run the commands found in the
  544.   file .xinitrc in your home directory. .xinitrc is just a shell script
  545.   containing X clients to run. If this file does not exist, the system
  546.   default /usr/X11R6/lib/X11/xinit/xinitrc will be used.
  547.  
  548.   A standard .xinitrc file looks like this:
  549.  
  550.   #!/bin/sh
  551.  
  552.   xterm -fn 7x13bold -geometry 80x32+10+50 &
  553.   xterm -fn 9x15bold -geometry 80x34+30-10 &
  554.   oclock -geometry 70x70-7+7 &
  555.   xsetroot -solid midnightblue &
  556.  
  557.   exec twm
  558.  
  559.   This script will start up two xterm clients, an oclock, and set the
  560.   root window (background) color to midnightblue.  It will then start up
  561.   twm, the window manager. Note that twm is executed with the shell's
  562.   exec statement; this causes the xinit process to be replaced with twm.
  563.   Once the twm process exits, the X server will shut down. You can cause
  564.   twm to exit by using the root menus: depress mouse button 1 on the
  565.   desktop background---this will display a pop up menu which will allow
  566.   you to Exit Twm.
  567.  
  568.   Be sure that the last command in .xinitrc is started with exec, and
  569.   that it is not placed into the background (no ampersand on the end of
  570.   the line). Otherwise the X server will shut down as soon as it has
  571.   started the clients in the .xinitrc file.
  572.  
  573.   Alternately, you can exit X by pressing ctrl-alt-backspace in
  574.   combination. This will kill the X server directly, exiting the window
  575.   system.
  576.  
  577.   The above is a very, very simple desktop configuration. Many wonderful
  578.   programs and configurations are available with a bit of work on your
  579.   .xinitrc file.  For example, the fvwm window manager will provide a
  580.   virtual desktop, and you can customize colors, fonts, window sizes and
  581.   positions, and so forth to your heart's content.
  582.  
  583.   If you are new to the X Window System environment, we strongly suggest
  584.   picking up a book such as The X Window System: A User's Guide.  Using
  585.   and configuring X is far too in-depth to cover here. See the man pages
  586.   for xterm, oclock, and twm for clues on getting started.
  587.  
  588.   5.1.  Terms of Use
  589.  
  590.   This document is copyright 1996 by Eric S. Raymond. You may use,
  591.   disseminate, and reproduce it freely, provided you:
  592.  
  593.   ╖  Do not omit or alter this copyright notice.
  594.  
  595.   ╖  Do not omit or alter or omit the version number and date.
  596.  
  597.   ╖  Do not omit or alter the document's pointer to the current WWW
  598.      version.
  599.  
  600.   ╖  Clearly mark any consdensed, altered or versions as such.
  601.  
  602.   These restrictions are intended to protect potential readers from
  603.   stale or mangled versions.  If you think you have a good case for an
  604.   exception, ask me.
  605.  
  606.   5.2.  Acknowledgements
  607.  
  608.   This document was originated by Matt Welsh in the dim and backward
  609.   abysm of time.  Thanks, Matt!
  610.  
  611.